package com.annhoa.offer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.logging.Logger;

/**
 * @Author annhoa
 * @Date 2019/3/18 10 08
 * @Description
 */
@RestController
public class OfferController {

    private final Logger logger = Logger.getLogger(this.getClass().toString());

    @Autowired
    private DiscoveryClient client;

    @RequestMapping(value = "/index/text1", method = RequestMethod.GET)
    public String text1() {
        System.out.println("offer-text1老子被调了！ 尼玛1");
        return "你好，我是index/text1；offer 提供方法";

    }
    @RequestMapping(value = "/index/text2", method = RequestMethod.GET)
    public String text2() {
        System.out.println("offer-text2老子被调了！ 尼玛2");
        System.out.println("老子被调了！ 尼玛");
        return "你好，我是index/text2；offer 提供方法";
    }



}
